package com.cdc.receiveparamers;

import com.opensymphony.xwork2.ActionSupport;
/**
 * 1.通过Action的属性接收参数
 * @author cdc
 *
 */
public class LoginAction extends ActionSupport {
	private static final long serialVersionUID = 7976300545477807672L;
	private String username;
	private String password;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public String login() {
		String username=getUsername();
		String password=getPassword();
		System.out.println("username="+username+"=password="+password);
		return SUCCESS;
	}
	
	
	
	
	

}
